<?php

class Recursos_Model_DbTable_Permissao extends Zend_Db_Table_Abstract
{

    protected $_name = 'permissao';
    protected $_primary = 'id';
    protected $_referenceMap = array(
    		'Perfil' => array(
    				'columns' => 'id_perfil',
    				'refTableClass' => 'Usuarios_Model_DbTable_Perfil',
    				'refColumns' => 'id',
    				'onDelete' => self::CASCADE,
    				'onUpdate' => self::RESTRICT
    		),
    		'Recursos' => array(
    				'columns' => 'id_recurso',
    				'refTableClass' => 'Recursos_Model_DbTable_Recursos',
    				'refColumns' => 'id',
    				'onDelete' => self::CASCADE,
    				'onUpdate' => self::RESTRICT
    		));


}

